# _*_coding     : UTF_8_*_
# Author        :Jie Shen
# CreatTime     :2021/12/15 10:43

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

sc = ax.scatter([1, 5], [1, 6], c=[1, 9])
ax.set_ylabel('YLabel', loc='top')
ax.set_xlabel('XLabel', loc='left')
cbar = fig.colorbar(sc)
cbar.set_label("ZLabel", loc='top')

plt.show()